#ifndef MACHINEMGR_H
#define MACHINEMGR_H
#include <list>
#include <string>
#include "tcpclient.h"

using namespace std;

class ClientMgr
{
public:
    ClientMgr();

    ClientMgr(const ClientMgr&) = delete;
    ClientMgr& operator=(const ClientMgr&) = delete;

    static ClientMgr& getInstance() {
            static ClientMgr instance;
            return instance;
        }

    void add(TcpClient* c);

    TcpClient *getClient(string ip);

private:
    list<TcpClient*> m_listClient;
};

#endif // MACHINEMGR_H
